import dva from "dva";
import "./index.less";
import FastClick from "fastclick";
import models from "./models";

const app = dva();

models.forEach(model => {
  app.model(model.default);
});

app.router(require("./router").default);

app.start("#root");

FastClick.attach(document.body);

export default app._store;
